package com.shallowUniverse.dmp.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author Shuai Guo
 * @version 1.0
 * @description
 * @date 2021/8/6
 */
@Data
@TableName("dmp_transfer_logs")
@JsonIgnoreProperties(ignoreUnknown = true)
public class TransferLogs {

    @TableId(type = IdType.INPUT)
    private Long sid;

    @TableField
    private Long transferId;

    @TableField
    private Long totalCount;

    @TableField
    private Long insertCount;

    @TableField
    private Long updateCount;

    @TableField
    private Integer status;

    @TableField
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @TableField
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
